package com.xframe.common.config;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "command")
@Data
public class CommandRunTimeArgs {


    private String initPwd = "123456";

    private String dataQueueName = "messageSynchronization";

    @Setter(AccessLevel.NONE)
    @Getter(AccessLevel.NONE)
    private static CommandRunTimeArgs runTimeArgs = null;

    public static void init(CommandRunTimeArgs args){
        runTimeArgs = args;
    }

    public static CommandRunTimeArgs getRunTimeArgs(){
        return runTimeArgs;
    }
}
